package com.alpaca.recommend.action;

import com.alpaca.recommend.mapreduce.MapRedWrapper;
import com.jfinal.aop.Before;
import com.jfinal.core.Controller;
import com.jfinal.plugin.spring.Inject;
import com.jfinal.plugin.spring.IocInterceptor;

/**
 * Created by wangj on 2015/2/27.
 */
@Before(IocInterceptor. class)
public class TaskController extends Controller{

    @Inject.BY_TYPE
    private MapRedWrapper mapRedWrapper;


    public void run() {
        try {
            mapRedWrapper.doMapRedAsych();
        }catch (Exception e) {
            e.printStackTrace();
        }
        renderText("suc");
    }
}
